home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Sample.bin / README < prev    next >
Text File  |  1998-09-15  |  4KB  |  101 lines

  1.             ============================
  2.             README for Win32 JRE sources
  3.             ============================
  4.  
  5. Building JRE.EXE
  6. ================
  7.  
  8. To build jre.exe for Win32 you must first have Microsoft Visual C++
  9. version 4.2 or later installed and located in your search path.
  10. In addition, the LIB environment variable must be set to include
  11. the <msvc>\lib directory and the INCLUDE variable must be set to
  12. include the directories <msvc>\include, <jdk>\include and
  13. <jdk>\include\win32, where <msvc> is the location of the MSVC++
  14. directory and <jdk> is the location of the JDK 1.1.2 directory.
  15. For example,
  16.  
  17.     C> set PATH=<msvc>\bin;%PATH%
  18.     C> set LIB=<msvc>\lib
  19.     C> set INCLUDE=<jdk>\include;<jdk>\include\win32;<msvc>\include
  20.  
  21. Then, to build both jre.exe and jrew.exe just type 'nmake' from the
  22. command line.
  23.  
  24. You can also use the makefile variable 'VERSION' to specify which
  25. version of the JRE that jre.exe should use at start up. If not set,
  26. then JRE version 1.1.2 will be used. If set to a version string,
  27. then that specified version of the JRE will be used. If set to
  28. an empty string, then the latest version of the JRE will be used.
  29. For example,
  30.  
  31.     C> nmake VERSION=1.1
  32.  
  33. Will use any 1.1 JRE installed on the system.
  34.  
  35.     C> nmame VERSION=1.1.2
  36.  
  37. Will use only JRE 1.1.2 if installed on the system.
  38.  
  39.     C> nmake VERSION=
  40.  
  41. Will use the latest version of the JRE installed.
  42.  
  43. JRE Registry Settings
  44. =====================
  45.  
  46. When installed, the JRE creates the following registry key:
  47.  
  48.     HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment
  49.  
  50. This key contains the following string value which is set to the
  51. major.minor version of the JRE installed:
  52.  
  53.     Name        Default Value
  54.     ----        -------------
  55.     CurrentVersion    1.1
  56.  
  57. In addition, a registry subkey is created using the major.minor version
  58. of the JRE installed. For example, in release 1.1.2 the following key
  59. will be created:
  60.  
  61.     HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\1.1
  62.  
  63. This key also contains the following string values which are used by
  64. the jre.exe and jrew.exe programs to obtain settings information for
  65. the runtime being used:
  66.  
  67.     Name        Default Value
  68.     ----        -------------
  69.     JavaHome        C:\Program Files\JavaSoft\JRE\1.1
  70.     RuntimeLib        C:\Program Files\JavaSoft\JRE\1.1\bin\javai.dll
  71.     MicroVersion    2
  72.     Compiler        (not set by default)
  73.  
  74. JavaHome is set to the full path name of the directory in which the JRE
  75. was installed, RuntimeLib contains the full path name of the Java runtime
  76. DLL to use, and MicroVersion identifies the particular micro-version of
  77. the JRE installed. The value Compiler can be optionally set to the library
  78. name of the JIT compiler DLL to use when running the VM. The JIT compiler
  79. can be temporarily disabled with the -nojit flag to jre.
  80.  
  81. By default, the JRE program will use the above registry keys when looking
  82. for an installed JRE. If specific version of the JRE required (i.e. 1.1.2)
  83. could not be found using the above registry settings then 'jre.exe' will
  84. default to the VM (i.e. javai.dll) that is installed in the same directory
  85. as the 'jre.exe' program itself.
  86.  
  87. JDK Registry Settings
  88. =====================
  89.  
  90. The JDK 1.1.2 release continues to bundle in its own copy of the JRE
  91. in order to maintain compatiblity with applications that expect all
  92. of the classes to be in classes.zip. For this reason, when the JDK is
  93. installed a parallel set of registry keys and values is created under
  94. the following master key:
  95.  
  96.     HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit
  97.  
  98. This is so that the JRE program as shipped with JRE 1.1.2 can either use
  99. the separately installed JRE or the JRE bundled in with JDK 1.1.2 if
  100. present.
  101.